{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">
	table tbody {
		display:block;
		height:650px;
		overflow-y:scroll;
		}
		
	table thead, tbody tr {
		display:table;
		width:100%;
		table-layout:fixed;
		}
		
	table thead {
		width: calc( 99.87% - 1em )
		}
</style>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    注单管理
    <span class="c-gray en">&gt;</span>
    额度记录
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
  
  <div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
  <div class="text-c" style="padding :20px 0;">
    <form action="" enctype="application/x-www-form-urlencoded" method="get" class="l" style="margin-left:20px;">
    <div  style="width:217px;" class="formControls col-xs-8 col-sm-9"> 
    	<span class="select-box">
			<select class="select" name="czid">
			<option value="0">全部彩种</option>
			{volist name="caizhong" id="vo"}
				<option value="{$vo.id}" {if condition="input('get.czid') == $vo.id"}selected{/if}>{$vo.cp_name_new ? $vo.cp_name_new : $vo.cp_name_old}</option>
			{/volist}
			</select>
		</span> 
	</div>

     &nbsp;&nbsp;&nbsp;&nbsp;从：
    <input type="text" name="sDate1" value="{$time.0|date='Y-m-d',###}" id="sDate1" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmin" class="input-text Wdate" style="width:120px;">
     到：
    <input type="text" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" name="sDate2" value="{$time.1|date='Y-m-d',###}"  id="sDate2"  class="input-text Wdate" style="width:120px;margin-right:15px;">
    <input type="text" name="us_sql" value="{$us_sql?$us_sql:''}" placeholder=" 会员名称" style="width:150px" class="input-text">
    <button class="btn btn-success" type="submit" style="margin-right:20px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
  </form>
  
  </div>
  
  <div class="page-container  dataTables_wrapper">
      <div id="tab-system" class="HuiTab">
        <div class="tabCon">
          <div class="mt-20">
            <table
              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
                <th>会员账号</th>
                <th>交易类别</th>
                <th>交易单号</th>
                
                <th>交易前金额</th>
                <th>交易金额</th>
                <th>交易后金额</th>
				<th>时间</th>
                </tr>
              </thead>
              <tbody>
              {volist name="query" id="item"}
                <tr class="text-c">
                	<td>{$item.username}</td>
                	<td style='text-align:center'>
                	{if($item.type==1)}
                	{if condition="$item.cp_name_new eq ''"}
			         {$item.cp_name_old}-派彩
			         {else /}
			         {$item.cp_name_new}-派彩
			         {/if}
                	{else/}
                	{if condition="$item.cp_name_new eq ''"}
			         {$item.cp_name_old}-{if($item.zjje==0)}未中奖{else /}投注{/if}
			         {else /}
			         {$item.cp_name_new}-{if($item.zjje==0)}未中奖{else /}投注{/if}
			         {/if}
			        {/if}
		         	</td>
                	<td>B{$item.cztime}{$item.id}</td>
                	
                	<td>{if($item.type==1)}{$item.tzhje|sprintf="%.2f",###}{else/}{$item.tzhje+$item.je|sprintf="%.2f",###}{/if}</td>
                	<td>{if($item.type==1)}+{else/}-{/if}{$item.je}</td>
                  	<td>{if($item.type==1)}{$item.tzhje+$item.je|sprintf="%.2f",###}{else/}{$item.tzhje|sprintf="%.2f",###}{/if}</td>
                  	<td>{$item.cztime|date="Y-m-d H:i:s",###}</td>
                </tr>
                {/volist}
              </tbody>
            </table>
          </div>
        </div>
      </div>
      
  </div>
  
  </div>
      
  </div>
{/block}

{block name="js"}
  <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
  <script type="text/javascript">
    $(function() {
      $('.skin-minimal input').iCheck({
        checkboxClass : 'icheckbox-blue',
        radioClass : 'iradio-blue',
        increaseArea : '20%'
      });
      $("#tab-system").Huitab({
        index : 0
      });
    });
    
</script>

{/block}
